Contents | Index | < Browse | Browse >

LETTERstrcpyULETTER Copies a string.

Overview
#include <string.h>

r = strcpy(dest,source);
char *r;
char *dest;
const char *source;

Portability
ANSI

Description
Copies the string "source" into "dest". "dest"'s size must be at least the size of "source" plus the terminating zero byte.

Returns
A pointer to "dest".

See also
strncpy